package com.brs.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public abstract class Person {
	private String firstName;
	private String lastName;
	private String sex;
	private Date birthday;
	private String address;
	private String phoneNumber;

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	@Override
	public String toString() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		return ", firstName=" + firstName + ", lastName=" + lastName + ", sex=" + sex + ", birthday="
				+ sdf.format(birthday) + ", address=" + address + ", phoneNumber=" + phoneNumber + "]";
	}
}
